package java6681.single;

public class Village6681Demo {
    public static void main(String[] args) {
        Village6681.waterSum = 200;
        int leftWater = Village6681.seeWater();
        System.out.println("水井中有 " + leftWater + " 升水");
        Village6681 v1, v2;
        v1 = new Village6681("小西庄", 100);
        v2 = new Village6681("枣庄", 70);
        System.out.println(v1 + "   " + v2 + "共饮一口井！");
        System.out.println("小西庄用了"+Village6681.drinkWater(80)+"升水");
        leftWater =Village6681.seeWater();
        System.out.println(v2.getName() + "发现水井中有 " + leftWater + " 升水");
        System.out.println("枣庄用了"+Village6681.drinkWater(100)+"升水");
        leftWater =Village6681.seeWater();;
        System.out.println(v1.getName() + "发现水井中有 " + leftWater + " 升水");

    }
}
